package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.domain.db.Announcement;
import org.apache.ibatis.annotations.Select;

public interface AnnouncementMapper extends BaseMapper<Announcement> {

//    IPage findAnnouncementsByPage(Integer pageNumber, Integer pageSize);
    @Select("SELECT * FROM `tb_announcement` ")
    IPage<Announcement> findAnnouncementsByPage(IPage iPage);

}
